﻿using LuShanTea.Service.Entities;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuShanTea.Service.ModelConfig
{
    class PermissionConfig:EntityTypeConfiguration<Permission>
    {
        public PermissionConfig()
        {
            this.ToTable("T_Permissions");
            Property(p => p.Name).IsRequired().HasMaxLength(64);
            Property(p => p.Descible).IsRequired().HasMaxLength(64);
        }
    }
}
